package demo;

import java.io.FileNotFoundException;
import java.io.IOException;

public class ExceptionDemo {

	public void doStuff(boolean throwException) throws FileNotFoundException,
			IOException {

		if (throwException) {
			throw new IOException();
		}
	}

	public void doMyStuff() throws MyException {
		
		throw new MyException("my custom cause");
	}

}
